// 实现导航菜单，始终在页面展示
import MenuItem from 'antd/lib/menu/MenuItem'
import { Link } from 'umi'
import { Menu } from 'antd'

export default function head({children}) {

    return (
        <div className="head">
            <Menu mode="horizontal" theme="dark">
                <MenuItem>
                    <Link to="/">Index</Link>
                </MenuItem>
                <MenuItem>
                    <Link to="/employee">List</Link>
                </MenuItem>
                <MenuItem>
                    <Link to="/employee/create">Employee</Link>
                </MenuItem>
            </Menu>
            {children}
        </div>
    )
}